package com.kt.thread.demo;

import java.util.concurrent.Callable;

/**
 * Created by tangwy on 2016/10/16.
 */
public class CallableTest implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        int i=0;
        for (;i<100;i++){
            Thread.sleep(100);
            System.out.println("线程:"+Thread.currentThread().getName()+"中的i="+i);
        }
        return i;
    }
}
